<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
	<title>{$title}{$_G[setting][titlend]}</title>
	<script type="text/javascript">
		var CURMODULE = "{CURMODULE}",
		CURSCRIPT = "{CURSCRIPT}",
		url = "{URL}/ajax_api", 
		root = "{URL}", 
		uid = "{$_G['uid']}", 
		city = "{$_G['city']}",
		username = "{$_G['username']}", 
		avatar = "{eval echo $avatar = (!$_G['setting']['is_uc'] || FORCEAVATAR == 1) ? ((empty($_G['avatar']) ? URL."/static/image/common/default.s.jpg" : URL.'/data/'.dirname($_G['avatar']).'/s/'.basename($_G['avatar']).'.jpg')) : avatarshow();}", 
		titlend = "{$_G[setting][titlend]}"{eval if(CURMODULE == 'viewpic') echo ", \n\t\tppid = \"$ppid\""};
</script>
{jstemplate}
{csstemplate}
<!--[if IE 6]>
<script src="{URL}/static/js/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
  DD_belatedPNG.fix('img, .hearts, .heart, .hearted, .phearts, .hearted');
</script>
 <style type="text/css"> body { behavior:url("{URL}/static/js/csshover3.htc"); }</style>
<![endif]-->
</head>

<body class="{CURSCRIPT}" id="{CURMODULE}">
	<div id="header">
		<div id="logo">
			<a href="{URL}">
				<h1>图片微薄系统</h1>
			</a>
		</div>
		<div id="topbar">
			<ul>
				{if $_G['uid'] == 0}
					<li><a href="{URL}/?fun=member&action=register">注册</a></li>
					<li><a href="{URL}/?fun=member&action=login">登录</a></li>
				{else}
					<li><a href="{URL}/{$_G['uid']}"><strong>{$_G['username']}</strong></a></li>
					<li><a href="{URL}/?fun=member&action=mail">私信</a></li>
					<li><a href="{URL}/?fun=member&action=friend">好友</a></li>
					<li><a href="{URL}/?fun=member&action=change">操作</a></li>
					<li><a href="{URL}/?fun=member&action=logout&formhash={FORMHASH}">安全退出</a></li>
				{/if}
			</ul>
		</div>
	</div>
	<div id="middle">